import { defineStore } from 'pinia'
import { routesToMenuTree } from '@/utils'
import faultSubList from '@/utils/faultSubList'


export const faultSubListStore = defineStore({
    id: 'faultSubList',
    state: () => {
        return {
            // 菜单列表
            faultSubData: faultSubList,
            lists: [],
            // 当前选中的菜单
            activeFaultSub: 1,
        }
    },

    getters: {},
    actions: {
        setActiveMenuItem(data) {},
    },
    // persist: {
    //     enabled: false,
    //     // keys: ['menuList, activeMenuItem'],
    //     encryptionKey: 'faultSubList',
    //     strategies: [{
    //         key: 'faultSubList',
    //         storage: sessionStorage,
    //     }, ],
    // },
})